<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>请求测试</title>
		<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
		<script type="text/javascript">
			//页面加载完成就请求
			window.onload = function() {
				$.ajax({
					url: "https://localhost:44377/api/JsonpCros/GetValue?isCallback=1",
					dataType: "jsonp",
					jsonp: "callback", //需要和服务端回掉方法对应
					cache: false,
					data: "",
					success: function(data) {
						console.log(data)
						$("#j_result").text(data);
					}
				});
			}

			//请求方法
			function jsonpMethod() {

			}
		</script>
	</head>
	<body>
		<h3>jsonp请求测试</h3>
		<div>返回结果：<span id="j_result"></span> </div>
	</body>
</html>
